package com.ruoyi.project.module.group.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.module.group.service.IGroupService;
import com.ruoyi.project.module.groupProperty.service.IGroupPropertyService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 **/
@Controller
public class GroupDetailController extends BaseController {

    private String prefix = "module/groupProperty";

    @Autowired
    private IGroupService groupService;
    @Autowired
    private IGroupPropertyService groupPropertyService;

    /**
     * 查询配置组属性列表
     */
    @RequiresPermissions("module:group:list")
    @GetMapping("/module/group/detail/{uniqueId}")
    public String detail(@PathVariable("uniqueId") Long uniqueId, ModelMap mmap)
    {
        mmap.put("configGroup", groupService.selectGroupById(uniqueId));
//        mmap.put("dictList", groupPropertyService.selectDictTypeAll());
        return prefix + "/detail";
    }
}
